<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jQuery的Ajax方法</title>
</head>
<body>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
    <script>
        // GET方式 无参数请求
        $.get('http://119.45.221.185:81/Student/GetStudentsConditionPages',res=>{
            console.log(res);
        })
        //参数
        let params = {
            pageIndex:3,
            pageSize:5
        }
        // GET方式 带参数请求
        $.get('http://119.45.221.185:81/Student/GetStudentsConditionPages',params,
        res=>{
            console.log(res);
        })

        let params2 = {studentNo:'KW35_1234'}
        // POST方式 无参数请求
        $.post('http://119.45.221.185:81/Student/Delete',params2,
        res=>{
            console.log(res);
        })
    </script>
</body>
</html>